package com.tpc.yaoxpt.utils;


import cn.hutool.core.date.DateUtil;

import java.util.Date;

public class StringUtil {

    public static String getInString(String intType,String intName,String msg){
        return DateUtil.formatDateTime(new Date()) +  "----【"+intType+"】:" + intName + "\n 【入参】 \n" + msg;
    }

    public static String getOutString(String intType,String intName,String msg){
        return DateUtil.formatDateTime(new Date()) +  "----【"+intType+"】:" + intName + "\n 【出参】 \n" + msg;
    }

    public static String getErrorString(String intType,String intName,String msg){
        return DateUtil.formatDateTime(new Date()) +  "----【"+intType+"】:" + intName + "\n 【异常】 \n" + msg;
    }

    public static String getInsertTableErrorString(String tableName,String column,String msg){
        return DateUtil.formatDateTime(new Date()) +  "----表【"+tableName+"】"+ "\n 【异常】 \n 异常原因："+  column +" "+  msg;
    }
}
